#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.65])
AC_INIT(ylmfos-gdm-setup, 1.0, yunsn0303@gmail.com)
AC_CONFIG_SRCDIR([src/ylmfgdmsetup.c])
AC_CONFIG_HEADERS([config.h])


# Used program


# Checks for programs.
AC_PROG_CC
AM_PROG_LIBTOOL

# Check for pkg-config
AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$HAVE_PKGCONFIG" = "xno"; then
	AC_MSG_ERROR(you need to have pkgconfig installed !)
fi

AM_PATH_GTK_2_0(2.12.0,,AC_MSG_ERROR([You need Gtk+ >= 2.12.0 to build $PACKAGE]))
AM_PATH_GLIB_2_0(2.14.0,,AC_MSG_ERROR([You need Glib >= 2.14.0 to build $PACKAGE]))

# include dbus
pkg_dbus="dbus-glib-1"
PKG_CHECK_MODULES(DBus, [$pkg_dbus])


# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([libintl.h locale.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset])

#i18n
GETTEXT_PACKAGE=ygs
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
AM_GLIB_GNU_GETTEXT
IT_PROG_INTLTOOL([0.41.0])



# automake
AM_INIT_AUTOMAKE
AC_CONFIG_FILES([Makefile \
		    src/Makefile
		    po/Makefile.in])
AC_OUTPUT
